import {getOrderAlllist} from "../../../api"

export default {

    data() {
        return {
            orderInfo: {}
        }
    },
    created() {
        this.getOrderInfo()
    },
    methods: {
        //获取订单信息
        getOrderInfo() {
            getOrderAlllist({
                orderNo: this.$route.query.orderNumber,
                page:1,
                pageSize:10
            }).then(res => {
                if (res.data) {
                    this.orderInfo = res.data.result.list[0].totalPrice
                }
            }).catch(() => {
                // this.$message.error("获取订单列表失败")
            })
        },
        //跳转订单列表
        goMuOrderList(){
            this.$router.push({path: '/user/userOrder'})
        }
    },

}
